package com.ridanlabs.professorwebsite.validation;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class SchoolIdValidator implements ConstraintValidator<SchoolId, String> {
	@Override
	public void initialize(SchoolId constraintAnnotation) { }

	@Override
	public boolean isValid(String value, ConstraintValidatorContext context) {
		if( value == null || value.equalsIgnoreCase("") ) return false;
		
		return true;
	}
	
}
